/**
 * Created by Administrator on 2017/10/17.
 */

var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    title:String,
    content:String,
    pic:String,
    cateId:String,
    commentCount:Number,
    date:String,
});
schema.plugin(mongoosePaginate);
var News = mongoose.model('News', schema,'news');
module.exports = News;

